<template>
	<view class="webview">
	  <web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(op) {
			this.url = decodeURIComponent(op.url);
			if(this.url.indexOf("http")==-1){
				this.url = "http://"+this.url;
			}
			uni.setNavigationBarTitle({
				title: op.title
			});
		}
	}
</script>

<style>
	.webview {
		width: 100vw;
		height: 100vh;
	}
</style>
